//
//  MessageMainViewController.m
//  HDMainWindow
//
//  Created by apple on 2017/4/25.
//  Copyright © 2017年 com.devin.definesys. All rights reserved.
//

#import "MessageMainViewController.h"
#import <NIMSDK/NIMSDK.h>

@interface MessageMainViewController () {

}

@end

@implementation MessageMainViewController

- (void)viewDidLoad {
//  注册网易云通讯
    [super viewDidLoad];
    [[NIMSDK sharedSDK] registerWithAppID:@"9e558faf6952747f6ec7897ea3318ff6" cerName:nil];
    [[[NIMSDK sharedSDK] loginManager] login:@"test_admin"
                                       token:@"111111"
                                  completion:^(NSError *error) {
                                      NSLog(@"OK! %@",[[NIMSDK sharedSDK] userManager].myFriends);
                                      NSLog(@"%@",error);
                                      ;
                                  }];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//初始化Message的NavigationBar。可以具体设置相应信息
#pragma mark - Navigation
- (void) initMessageNavigationBar {
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
